<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
  <meta name="viewport" content="width=device-width,initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-touch-fullscreen" content="yes">
  <meta name="format-detection" content="telephone=no">
  <title>每月运势</title>
  <!--[if lt IE 9]>  
        <script src="http://cdn.bootcss.com/html5shiv/r29/html5.js"></script>
        <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>    
    <![endif]-->
  <link rel="stylesheet" href="__PUBLIC__/css/YD_calendar.min.css">
  <link rel="stylesheet" href="__PUBLIC__/css/LArea.css">
  <link rel="stylesheet" href="__PUBLIC__/css/bzjp_bmf_lq.css">
  <script type="text/javascript" src="__PUBLIC__/js/rem.js"></script>
  <script src="__PUBLIC__/js/YD_calendar.min.js"></script>
  <script src="__PUBLIC__/js/jquery.min.js"></script>
  <script src="__PUBLIC__/js/layer/layer.js"></script>
  <script src="__PUBLIC__/js/LArea.js"></script>
  <script src="__PUBLIC__/js/LAreaData1.js"></script>
  <style>
    .m_container{
      padding: 0;
    }
    .m_item{
      padding-bottom: 0;
    }
    .banner-img{
      width: 100%;
      display: block;
      height: auto;
    }
    .common-img-title{
        width: 5.4rem;
        display: block;
        height: auto;
        margin: 0.4rem auto;
    }
    .wdds{
      display: flex;
    }
    .wdds .wdds-img{
      width: 2.1rem;
      display: block;
      height: 2.9rem;
      flex:none;
      margin-left: 0.2rem;
      margin-right: 0.3rem;
    }
    .wdds .instr p{
      color: #333333;
      font-size: 0.26rem;
      line-height: .5rem;
    }
    .wdds .instr p span{
      color: #e63624;
    }
    .m_form_ul{
      padding-top: 0;
      background-color: #fff;
    }
    .m_form_ul li{
      border: none;
      background-color: #eeeeee;
    }
    .m_form_ul li label{
      position: relative;
      width: 1rem;
    }
    .m_form_ul li label span:after{
      position: absolute;
      margin-top: -0.12rem;
      top: 50%;
      margin-top: -0.1rem;
      left: 0.04rem;
      /* left: -0.12rem; */
    }
    .m_wrap{
      border: none;
      background-color: #fff;
    }
    .info-reciver .m_wrap{
      margin-top: 0;
      padding-top: 0;
    }
    .m_form_btnwrap{
      padding: 0;
    }
    .m_form_btnwrap .m_form_submit{
      width: 7rem;
      height: 1rem;
      background-image: url('__PUBLIC__/images/lucky-monthly/btn_chakanyunshi.png');
      background-size:100% 100%;
      display: flex;
      color: #ffffff;
      font-size: 0.36rem;
      justify-content: center;
      align-items: center;
    }
    .m_form_prompt{
      font-size: .28rem;
      color:#333;
      margin-top: 0.17rem;
    }
    .red-tt{
      color: #e52f1c;
    }
    .cmts-list{

    }
    .bg-img{
      margin-top: 0.36rem;
      width: 100%;
      display: block;
      height: auto;
    }
    .cmts-wrap{
      margin: 0.3rem ;
      box-sizing: border-box;
      border: solid 2px #ff7e71;
      padding: .18rem;
    }
    .cmts-wrap .cmts-item{
      list-style: none;
      background-color: #fff;
      width: 100%;
      /* height: 482px; */
      box-sizing: border-box;
      padding:.21rem 0;
      border-top: 1px solid #ae9292;
    }
    .cmts-wrap .cmts-item:first-child{
      border-top: none
    }
    .cmts-wrap .cmts-item .user-info{
      font-size: .28rem;
      color: #e63624;
    }
    .cmts-wrap .cmts-item .cmt-content{
      font-size: .28rem;
      color: #333333;
    }
    </style>
</head>

<body>
  <section class="m_container">
      <include file="Public/header"/>
    <div class="m_item">
      <img class='banner-img' src="__PUBLIC__/images/lucky-monthly/banner.png" alt="">
      <img src="__PUBLIC__/images/lucky-monthly/img_MYYS.png" class="common-img-title">
      <div class="wdds">
        <img src="__PUBLIC__/images/lucky-monthly/img_touxiang.png"  alt="" class="wdds-img">
        <div class="instr">
          <p class="row">琬琰大师通过<span class="red">十二生肖与天干地支、命理风水的关系来为大家剖析3月份的运程起伏。</span></p>
          <p class="row">指导你<span class="red">发掘财路、找到事业</span>的突破点，并为您的<span class="red">姻缘、身体健康</span>做指引。助你把握未来形势，运筹帷幄。</p>
        </div>
      </div>
      <img src="__PUBLIC__/images/lucky-monthly/img_GRXX.png" class="common-img-title">
    </div>
    <div class="m_item info-reciver">
      <div class="m_wrap">
        <!-- <div class="m_title2">填写信息</div> -->
        <div class="m_form_container">
          <form action="<!--{:U('Myys/zhifu','',false)}-->" method="POST" id="p_form">
            <!-- <p class="m_form_p">请输入您的生辰八字：我们将根据您的八字为您自动推算。</p> -->
            <ul class="m_form_ul">
                <li>
                    <div class="f_left">您的姓名</div>
                    <div class="f_auto"><input type="text" id="username" name="username" placeholder="请输入姓名"></div>
                  </li>
              <li>
                <div class="f_left">您的性别</div>
                <div class="f_auto">
                  <label for="man">
                    <input type="radio" name="gender" checked="checked" style="display: none" id="man" value="1">
                    <span class="select"></span>男
                  </label>
                  <label for="woman">
                    <input type="radio" name="gender" style="display: none" id="woman" value="0">
                    <span class="select"></span>女
                  </label>
                </div>
              </li>
              <li>
                <div class="f_left">出生日期</div>
                <div class="f_auto"><input type="text" data-date="1985-04-18-7" data-id="birthday" id="datetime"
                    readonly="true" placeholder="请选择出生日期"></div>
                <input type="hidden" id="birthday" name="birthday">
              </li>
              
            </ul>
            
            <div class="m_form_btnwrap cs_btn">
              <div class="m_form_submit">查看<!--{$month}-->月运势</div>
            </div>
            <p class="m_form_prompt">目前已有<sapn class="red-tt"><!--{$Think.cookie.myyscs}--></sapn>人查看了自己<!--{$month}-->月份运势分析</p>
          </form>
        </div>
      </div>
    </div>
    <div class="cmts-list">
      <img src="__PUBLIC__/images/lucky-monthly/myys-big.png" alt="" class="bg-img">
      <ul class="cmts-wrap">
        <li class="cmts-item">
          <div class="user-info">
            <span class="name">李先生</span>
            <span class="phone">130****5954</span>
          </div>
          <div class="cmt-content">因果循环，听完大师的分析后，对命运有了全新的认识，人生处处都是有得有失，还是不能太过强势，泰然处之才能有更多收获。
          </div>
        </li>
        <li class="cmts-item">
          <div class="user-info">
            <span class="name">张先生</span>
            <span class="phone">131****1236</span>
          </div>
          <div class="cmt-content">感谢大师给予的建议,刚出社会生活的我对未来很迷茫,每个月都在浑浑噩噩的混日子，现在按照大师的意见去调整，每个月都过的很充实，这段时间工作都很顺利,谢谢大师！
          </div>
        </li>
      </ul>
    </div>
    <!-- 热门测算 -->
    <div class="hot_cs">
      <include file="Public/zhiming" />
    </div>
  </section>
  <script>
      console.log('<!--{$cs}-->');
    var birthday = document.querySelector('#birthday');
    var username = document.querySelector('#username');
    var area = document.querySelector('#area');
    var areaes = document.querySelector('#areaes');
    var phone = document.querySelector('#phone');
    var m_form_submit = document.querySelector('.m_form_submit');

      $(".cs_btn").on('click', function () {
      if (birthday.value == "") {
        layer.msg('请选择您的出生日期')
        return false;
      }
      if (username.value == "") {
        // layer.msg('请输入您的姓名')
        // return false;
        username.value = "匿名"
      } 
      if (!/^[\u4e00-\u9fa5]{2,}$/.test(username.value)) {
        layer.msg('请输入中文名字')
        return false;
      }
      // if (area.value == "") {
      //   layer.msg('请选择收货地址')
      //   return false;
      // }
      // if (areaes.value == "") {
      //   layer.msg('请输入收货详细地址')
      //   return false;
      // } 
      // if (areaes.value.length < 6) {
      //   layer.msg('详细地址不能低于6个字')
      //   return false;
      // }
      // if (phone.value == "") {
      //   layer.msg('请输入您的手机号码')
      //   return false;
      // } 
      // if (!/^[1][3,4,5,7,8][0-9]{9}/.test(phone.value)) {
      //   layer.msg('手机号码输入有误')
      //   return false;
      // }
      layer.load();
      setTimeout(function () {
        layer.closeAll('loading');
        layer.msg('订单提交成功', {
          icon: 1
        });
        setTimeout(function () {
          $('#p_form').submit();
        }, 1500);
      }, 1000);
    })

    var calendar = new lCalendar().init('#datetime');

    var areaPlugin = new LArea();
    areaPlugin.init({
      'trigger': '#area', //触发选择控件的文本框，同时选择完毕后name属性输出到该位置
      'valueTo': '', //选择完毕后id属性输出到该位置
      'keys': {
        id: 'id',
        name: 'name'
      }, //绑定数据源相关字段 id对应valueTo的value属性输出 name对应trigger的value属性输出
      'type': 1, //数据源类型
      'data': LAreaData //数据源
    });
  </script>
</body>

</html>